<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
    #parse("/h5/common/webWords.html")
<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/medioadaption.css">
<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/stcss.css">
<script type="text/javascript" src="http://${staticHost}/js/jquery.js"></script>
<script type="text/javascript" src="http://${staticHost}/js/continuingEducation.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script src="http://${staticHost}/js/layer.js"></script>

    <script type="text/javascript">
        function showMessage(msg){
            layer.open({
                content: msg
                ,btn: '关闭'
            });
        }
    $(document).ready(function(){
        $("#submitForm").click(function(){
        	
        	
        	var fillDate = $("#fillDate").val();
        	if(fillDate == ''){
        		return;
        	}
        	var reg = /^(\d{4})-(\d{2})$/;
       		if (!reg.test(fillDate) || RegExp.$2>12){
       			showMessage("学籍填报日期错误!");
       			$("#fillDate").val("");
       			document.getElementById('fillDate').focus();
       			return;
       		}
        	
        	$.ajax({
                url:"/schoolroll/auth/update", 
                data:$('#myForm').serialize(), // 从表单中获取数据
                type:"POST", 
                error:function(xmlHttpRequest, error) { // 设置表单提交出错
                	console.log(error);
                },
                success:function(resData) {
                	if(resData.status == '00000000'){
                		showMessage("保存成功");
                        window.location.href="/schoolroll/auth/typeIn";
                	}else{
                		showMessage(resData.message);
                	}
                }
            });
        });
    });
</script>
    <style type="text/css">
        .editMood{
            color: #333;
        }
    </style>
</head>


<body style="background-color:#f8f8f8;">
<div class="dlny clear">
   <dl>
      <dt><a href="/edu/auth/toEditHeadprotrait"><img src="${headPortrait}"></a></dt>
      <dd>
          [${studentName}] <a href="/edu/auth/toEditStudentInfo" class="editMood">${mood}</a>
      </dd>
   </dl>
</div>

<div class="login-box">
   <div class="login-box-width">
   	   <form id="myForm" action="">
       <ul>
           <li>
               <div class="form-box clearfix">
                   <input type="text" id="school" style="width: 94%;" name="school" disabled="disabled" placeholder="学校" value="#if (!$ssi.school)#else $ssi.school #end">
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">报考学校的全称</div>
           </li>
                                      
           <li class="password-input">
               <div class="form-box clearfix">
                   <select name="level" disabled="disabled" id="level" class="am-field-error am-active"  style="background:#ebebe4;color: #333;">
		             <option value="">请选择层次</option>
		             #foreach($levle in $levelList)
						<option value="$levle.value" #if ($ssi.level == $levle.value) selected="selected" #end >$levle.label</option>
					 #end
 					</select>
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">层次</div>
           </li>
           <li class="password-input">
               <div class="form-box clearfix">
                   <select name="grade" disabled="disabled" id="grade" required="" class="am-field-error am-active" style="background:#ebebe4;color: #333;">
		             <option value="">请选择年级</option>
		             #foreach($grade in $gradeList)
						<option value="$grade.value" #if ($ssi.grade == $grade.value) selected="selected" #end >$grade.label</option>
					 #end
 					</select>
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">年级</div>
           </li>
           <li class="password-input">
               <div class="form-box clearfix">
                   <input type="text" id="major" style="width: 94%;" disabled="disabled" placeholder="专业" value="#if (!$ssi.major)#else $ssi.major #end">
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">录取专业</div>
           </li>
           <li class="password-input">
               <div class="form-box clearfix">
                   <select name="schoolingLength" disabled="disabled" id="schoolingLength" required="" class="am-field-error am-active" style="background:#ebebe4;color: #333;">
		             <option value="">请选择学制</option>
		             #foreach($schoolLength in $schoolingLengthList)
						<option value="$schoolLength.value" #if ($ssi.schoolingLength == $schoolLength.value) selected="selected" #end >$schoolLength.label</option>
					 #end
 					</select>
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">学制</div>
           </li>
           <li class="password-input">
               <div class="form-box clearfix">
                   <select name="learningForm" id="learningForm" disabled="disabled" required="" class="am-field-error am-active" style="background:#ebebe4;color: #333;">
		             <option value="">请选择学习形式</option>
		             #foreach($learningForm in $learningFormList)
						<option value="$learningForm.value" #if ($ssi.learningForm == $learningForm.value) selected="selected" #end >$learningForm.label</option>
					 #end
 					</select>
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">学习形式</div>
           </li>
           <!-- <li>
               <div class="form-box clearfix">
                   <input type="text" id="studentNo" name="studentNo" placeholder="学号" value="#if (!$ssi.studentNo)#else $ssi.studentNo #end">
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">填写录取通知书上的学号</div>
           </li> -->
           <li>
               <div class="form-box clearfix">
                   <input type="text" id="fillDate" name="fillDate" value="#if (!$ssi.fillDate)$fillDate#else $ssi.fillDate #end" placeholder="填表日期">
               </div>
               <div style="color:#dc5c5c; padding-left:9px;">请填写填表日期，例如2018-01</div>
           </li>
       </ul>
       </form>
   </div>
   <div class="md_dl"><input name="" id="submitForm" type="image" src="http://${staticHost}/images/tj01.jpg" style="width:290px; height:42px; border:none; margin-top:20px; margin-bottom:30px;" /></div>
</div>

<div class="holderdiv"></div>
<div class="fixdiv">
  <ul>               
    <li>
    	#if($ssi.universityFillStatus == 1 && $ssi.baseInfoFillStatus == 1 && $ssi.workExperienceFillStatus == 1 && $ssi.familyFillStatus == 1)
    		<a href="/internal/auth/myClass">
    	#else
    		<a href="javascript:void(0)" onclick="window.history.go(-1)">
    	#end
    	<img src="http://${staticHost}/images/foticon001.jpg"><span>返回</span></a></li>
    <li><a href="/edu/auth/modifyPwd"><img src="http://${staticHost}/images/foticon004.jpg"><span>重置密码</span></a></li>
	<li><a href="javascript:void(0)" onclick="loginOut()"><img src="http://${staticHost}/images/foticon003.jpg"><span>退出系统</span></a></li>
  </ul>
</div>

</body>
</html>